package com.cxhc.system.service.app.impl;

import java.util.List;

import com.cxhc.system.domain.app.RpIllegalPark;
import com.cxhc.system.mapper.app.RpIllegalParkMapper;
import com.cxhc.system.service.app.IRpIllegalParkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 违停检查Service业务层处理
 * 
 * @author Dhq
 * @date 2024-09-19
 */
@Service
public class RpIllegalParkServiceImpl implements IRpIllegalParkService
{
    @Autowired
    private RpIllegalParkMapper rpIllegalParkMapper;

    /**
     * 查询违停检查
     * 
     * @param id 违停检查主键
     * @return 违停检查
     */
    @Override
    public RpIllegalPark selectRpIllegalParkById(Long id)
    {
        return rpIllegalParkMapper.selectRpIllegalParkById(id);
    }

    /**
     * 查询违停检查列表
     * 
     * @param rpIllegalPark 违停检查
     * @return 违停检查
     */
    @Override
    public List<RpIllegalPark> selectRpIllegalParkList(RpIllegalPark rpIllegalPark)
    {
        return rpIllegalParkMapper.selectRpIllegalParkList(rpIllegalPark);
    }

    /**
     * 新增违停检查
     * 
     * @param rpIllegalPark 违停检查
     * @return 结果
     */
    @Override
    public int insertRpIllegalPark(RpIllegalPark rpIllegalPark)
    {
        return rpIllegalParkMapper.insertRpIllegalPark(rpIllegalPark);
    }

    /**
     * 修改违停检查
     * 
     * @param rpIllegalPark 违停检查
     * @return 结果
     */
    @Override
    public int updateRpIllegalPark(RpIllegalPark rpIllegalPark)
    {
        return rpIllegalParkMapper.updateRpIllegalPark(rpIllegalPark);
    }

    /**
     * 批量删除违停检查
     * 
     * @param ids 需要删除的违停检查主键
     * @return 结果
     */
    @Override
    public int deleteRpIllegalParkByIds(Long[] ids)
    {
        return rpIllegalParkMapper.deleteRpIllegalParkByIds(ids);
    }

    /**
     * 删除违停检查信息
     * 
     * @param id 违停检查主键
     * @return 结果
     */
    @Override
    public int deleteRpIllegalParkById(Long id)
    {
        return rpIllegalParkMapper.deleteRpIllegalParkById(id);
    }
}
